package com.carlinfo.common.util;
import java.io.InputStream;
import java.util.ResourceBundle;

import com.alibaba.fastjson.JSONObject;

public class ConstantFinalUtil
{
	/**
	 * 资源文件
	 */
	public static ResourceBundle BUNDLE = ResourceBundle.getBundle("userscenter");

	public static JSONObject CONFIG_JSON = new JSONObject();

	public static JSONObject INFO_JSON = new JSONObject();
	
	public static JSONObject IMG_JSON = new JSONObject();

	static
	{
		FileUtil fileUtil = new FileUtil();
		InputStream is = FileUtil.class.getResourceAsStream("/dataJson.json");
		String str = fileUtil.readFile(is);
		CONFIG_JSON = JSONObject.parseObject(str);
		INFO_JSON = CONFIG_JSON.getJSONObject("info");
		IMG_JSON = CONFIG_JSON.getJSONObject("config");
	}
	
	public static void main(String[] args)
	{
		ResourceBundle BUNDLE = ResourceBundle.getBundle("userscenter");
		System.out.println(BUNDLE.getString("jdbc.user"));
	}
}
